// static 方法
class Person {
  constructor (name){
    this.name = name
  }

  say() {
    console.log(`hi, my name is ${this.name}`)
  }

  static create (name) { // 创建Person实例
    return new Person(name)
  }
}

const tom = Person.create('Tom')
// 静态方法的this不会指向实例对象
tom.say()